﻿ @model  PartyManagement.Models.Event 
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

@using (Html.BeginForm("_CreatePartial","BookEvent",FormMethod.Post)) {
    @Html.ValidationSummary(true)
 
    <fieldset class="fieldsetEvent">
        <legend>Event</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.eventName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.eventName)
            @Html.ValidationMessageFor(model => model.eventName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dateEvent)

        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dateEvent)
             <script>
                 //$(function () {
                 $("#dateEvent").datepicker();
                 //});
              </script>
            
            @Html.ValidationMessageFor(model => model.dateEvent)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.endDateBook)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.endDateBook)
            @Html.ValidationMessageFor(model => model.endDateBook)
             <script>
                 $(function () {
                 $("#endDateBook").datepicker();
                 });
            </script>
        </div>


        <div class="editor-field">
           @Html.Hidden("userID",Session["userID"])
        </div>

        <p>
            <input type="submit" value="Save" name="save"   />
        </p>
    </fieldset>
   
}
